#ifndef RS_FEC_WRAPPER_H
#define RS_FEC_WRAPPER_H

//#include <RS_fec.h>

typedef struct RsFecWrapperS RsFecWrapperT;

#ifdef __cplusplus
extern "C"
{
#endif

RsFecWrapperT *RFWCreate(int dataNum, int fecNum, int dataLen);

int RFWDecode(RsFecWrapperT *rfw, uint8_t **pData, uint8_t **pFec, int *lostMap);

int RFWEncode(RsFecWrapperT *rfw, uint8_t **pData, uint8_t **pFec);

#ifdef __cplusplus
}
#endif

#endif
